package com.mc.read.dao.mapper;

import com.mc.read.dao.models.Booktype;
import com.mc.read.dao.models.BooktypeExample;
import com.mc.read.dao.vo.BookTypeNode;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BooktypeMapper {
    int countByExample(BooktypeExample example);

    int deleteByExample(BooktypeExample example);

    int deleteByPrimaryKey(Integer booktypeid);

    int insert(Booktype record);

    int insertSelective(Booktype record);

    List<Booktype> selectByExample(BooktypeExample example);

    Booktype selectByPrimaryKey(Integer booktypeid);

    int updateByExampleSelective(@Param("record") Booktype record, @Param("example") BooktypeExample example);

    int updateByExample(@Param("record") Booktype record, @Param("example") BooktypeExample example);

    int updateByPrimaryKeySelective(Booktype record);

    int updateByPrimaryKey(Booktype record);

    List<BookTypeNode> selectBookType();

    /**
     * @Author:LiuHao
     * @Date:15:24 2019/5/31
     *查询所有主分类
     **/
    List<Booktype> selectMainLevel();
}